package com.tianyi.sfzy1.domain;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 心理答疑问题表
 * @TableName psychologicalquestion
 */
@Data
public class Psychologicalquestion implements Serializable {
    /**
     * 问题编号
     */
    private Integer questionId;

    /**
     * 问题标题
     */
    private String questionTitle;
    private String  questionContent;


    /**
     * 会员编号 -- 应该引用Member(member_id)
     */
    private Integer memberId;

    /**
     * 发布时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date publishTime;
    private Member member;

    private static final long serialVersionUID = 1L;
}